package car;

public class Car extends Vechile {

	public Car(String serialNo, String brand, int seat, int price) {
		super(serialNo, brand, seat, price);
	}

	@Override
	public int calcMoney(int days) {
		int m = super.calcMoney(days);
		if (days > 150)
			return (int) (m * 0.7);
		if (days > 30)
			return (int) (m * 0.8);
		if (days > 7)
			return (int) (m * 0.9);
		return m;
	}

	@Override
	public String toString() {
		return "轿车：" + super.toString();
	}
}
